package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusSpjgFlowMapper;
import com.ruoyi.business.domain.BusSpjgFlow;
import com.ruoyi.business.service.IBusSpjgFlowService;

/**
 * 流量统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-21
 */
@Service
public class BusSpjgFlowServiceImpl implements IBusSpjgFlowService 
{
    @Autowired
    private BusSpjgFlowMapper busSpjgFlowMapper;

    /**
     * 查询流量统计
     * 
     * @param id 流量统计主键
     * @return 流量统计
     */
    @Override
    public BusSpjgFlow selectBusSpjgFlowById(Long id)
    {
        return busSpjgFlowMapper.selectBusSpjgFlowById(id);
    }

    /**
     * 查询流量统计列表
     * 
     * @param busSpjgFlow 流量统计
     * @return 流量统计
     */
    @Override
    public List<BusSpjgFlow> selectBusSpjgFlowList(BusSpjgFlow busSpjgFlow)
    {
        return busSpjgFlowMapper.selectBusSpjgFlowList(busSpjgFlow);
    }

    /**
     * 新增流量统计
     * 
     * @param busSpjgFlow 流量统计
     * @return 结果
     */
    @Override
    public int insertBusSpjgFlow(BusSpjgFlow busSpjgFlow)
    {
        return busSpjgFlowMapper.insertBusSpjgFlow(busSpjgFlow);
    }

    /**
     * 修改流量统计
     * 
     * @param busSpjgFlow 流量统计
     * @return 结果
     */
    @Override
    public int updateBusSpjgFlow(BusSpjgFlow busSpjgFlow)
    {
        return busSpjgFlowMapper.updateBusSpjgFlow(busSpjgFlow);
    }

    /**
     * 批量删除流量统计
     * 
     * @param ids 需要删除的流量统计主键
     * @return 结果
     */
    @Override
    public int deleteBusSpjgFlowByIds(Long[] ids)
    {
        return busSpjgFlowMapper.deleteBusSpjgFlowByIds(ids);
    }

    /**
     * 删除流量统计信息
     * 
     * @param id 流量统计主键
     * @return 结果
     */
    @Override
    public int deleteBusSpjgFlowById(Long id)
    {
        return busSpjgFlowMapper.deleteBusSpjgFlowById(id);
    }
}
